package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.MarketAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.market.market.MarketActivity;
import com.kelvin.paopao.module.market.market.market.MarketPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/10.
 */

@Module
public class MarketModule {
    private MarketActivity mVIew;

    public MarketModule(MarketActivity view) {
        this.mVIew = view;
    }

    @PerActivity
    @Provides
    public MarketPresenter providePresenter() {
        return new MarketPresenter(mVIew);
    }

    @PerActivity
    @Provides
    public MarketAdapter provideAdapter() {
        return new MarketAdapter(mVIew);
    }
}
